namespace Leey.Net.eTerm
{
    using System;
    using System.IO;
    using System.Net.Sockets;

    public class StateObject
    {
        public byte[] buffer = null;
        public int Cortrol = 0;
        public Stream Datastream = new MemoryStream();
        public long packSize = 0L;
        public long residualSize = 0L;
        public Socket workSocket = null;

        public StateObject(int bufferSize, Socket WorkSocket)
        {
            this.buffer = new byte[bufferSize];
            this.workSocket = WorkSocket;
        }
    }
}
